import {
  Entity,
  Column,
  PrimaryGeneratedColumn,
  CreateDateColumn,
} from 'typeorm';

@Entity()
export class Certificate {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ default: '未命名证书' })
  title: string;

  @Column({ default: '未指定报名时间' })
  registrationTime: string;

  @Column({ type: 'text' })
  examIntroduction: string;

  @Column({ type: 'text' })
  examSyllabus: string;

  @Column({ type: 'text' })
  examSchedule: string;

  @Column({ default: '暂无真题下载链接' })
  pastPapersDownload: string;

  @Column({ type: 'text' })
  medicalExamQa: string;

  @CreateDateColumn()
  uploadTime: Date;
}
